/*
 * Copyright 2009 Douglas Lockamy, dlockamy_at_gmail.com
 * All rights reserved. Distributed under the terms of the MIT License.
 */

/*BenixJS VFS Spec version:0.1*/
 
function fileNode() {
    fileNode.Name = "";
    fileNode.meta = 0;
    fileNode.next = 0;
    fileNode.prev = 0;
    fileNode.Data = 0;
    fileNode.Type = 0;
    fileNode.Parent = 0;
    fileNode.reserved = 0;
};


function mountNode() {
    fsName = "";
    serverAddress = "";
    fsSessionID = "";
    classObj = 0;
    Parent = 0;
};

//Our offical public fs interface functions
//benix.mount(serverAddress,fs_type,mountPoint,user,pass,argv)
//benix.umount(mountPoint)
//benix.read(path,flags,buffer,offset,length,sessionKey)
//benix.write(path,flags,buffer,offset,length,sessionKey)


//read flags
var CHECKDIR = 1;
var GETFILENODE = 2;
var GETFILEDATA = 3;
var GETFILEURL = 4;

//write flags
var DELETE = 0;
var CREATEDIR = 1;
var CREATEDATAFILE = 2;
var CREATELINK = 3;
var CREATEUNIONLINK = 4;
